import 'package:flutter/material.dart';
import '../MyButton.dart';
class HomePage extends StatefulWidget {
  HomePage({Key key}) : super(key: key);

  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return GridView(
        gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
          crossAxisCount: 3,
          childAspectRatio: 2.0,
        ),
        children:<Widget>[
          MyButton(text: '页面传参',path: '/search',arguments: {"id":48494949},),
          MyButton(text:'AppBarIcon',path:'/AppBarIconPage' ,),
          MyButton(text:'TabBar',path:'/TabBarPage' ,),
          MyButton(text:'Drawe 侧边栏',path:'/DrawerPage' ,), 
          MyButton(text:'button',path:'/ButtonPage' ,), 
          MyButton(text:'form',path:'/FormPage' ,), 
          MyButton(text:'DatePicker',path:'/DatePickerPage' ,), 
          MyButton(text:'swiperPage',path:'/swiperPage' ,), 
          MyButton(text:'AlertPage',path:'/AlertPage' ,), 
          MyButton(text:'HttpPage',path:'/HttpPage' ,), 
          MyButton(text:'ScrollPage',path:'/ScrollPage' ,), 
          MyButton(text:'WebViewPage',path:'/WebViewPage' ,), 
          MyButton(text:'Navigator',path:'/register' ,), 
        ]
      ); 
  }
}

